﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using CoyoEden.Web.Controls;
using CoyoEden;

public partial class User_controls_SWFUpload : ViewBase
{
	public string CurUserID
	{
		get;
		set;
	}
	public string SWFUploadUrl { get; set; }
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!Page.IsPostBack)
		{
			CurUserID = Page.User.Identity.Name;
			CurUserID = (string.IsNullOrEmpty(CurUserID)) ? "_UNKNOWN_" : CurUserID;
			SWFUploadUrl = Utils.AbsoluteWebRoot + "SWFUpload.axd";
			//js & css
			Utils.AddJavaScriptInclude(Utils.RelativeWebRoot+"assets/js/swfupload/swfupload.js",Page,true);
			Utils.AddJavaScriptInclude(Utils.RelativeWebRoot + "assets/js/swfupload/SWFUploadHandlers.js",Page,true);
			Utils.AddStylesheetInclude(Utils.RelativeWebRoot+"assets/css/swfupload.css",Page,true);
		}
	}
}
